import {IsBoolean, IsNumber, IsOptional, Min } from "class-validator";

export default class CreateDto{
    @Min(0.01)
    @IsNumber({})
    amount:string;

    @Min(0)
    @IsNumber({})
    @IsOptional()
    reward:string;

    @IsBoolean()
    @IsOptional()
    enable:boolean;
}